
package xhe.api.log.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import xhe.api.log.mapper.GatewayMapper;
import xhe.api.log.service.GatewayService;
import xhe.entities.LogEntity;

/**
 * <b> 接口实现类: </b> 网关日志
 * 
 * @author xhe
 * @version V1.0.0.0
 * @version --2020-10-14
 */
@Service
public class GatewayImpl implements GatewayService {
	@Autowired
	private GatewayMapper mapperGateway;

	@Override
	public Boolean writeLog(LogEntity log) {

		int iResult = mapperGateway.writeLog(log);

		if (iResult == 1) {

			return true;
		} else {

			return false;
		}
	}
}
